<html>
<head>
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <meta charset="utf-8" />
  <title>米塔企业微云</title>
  <link href="../plugins/bootstrap/bootstrap.min.css" rel="stylesheet">
  <link href="../plugins/bootstrapValidator/bootstrapValidator.min.css" rel="stylesheet">
  <link href="../customize/css/iconfont.css" rel="stylesheet">
  <link href="../customize/css/content.css" rel="stylesheet">
  <style>
    .more-info{ color: #87EDDF; }
    .more-info:hover{ color: #59c5b7;}
    .device-img-wrapper{ width: 400px; height: 574px; border: 1px solid rgba(0, 150, 255, 0.5);}
    .device-img-wrapper img{ max-height: 572px;}
    .w-4{ width: 4em;}
    .w-5{ width: 5em;}
    .w-6{ width: 6em;}
    .info-sec{ margin-bottom: 8px; line-height: 30px;}
    .info-name{ color: rgba(255,255,255,0.8); text-align: right;}
    .info-value{ color: #69C5E9; background: #011734; padding: 0 15px; margin-left: 15px; }
  </style>
</head>
<body>
    <div class="main-content">
      <div class="d-flex justify-content-end my-3">
        <div>
          <div class="input-group">
            <input type="text" class="form-control" placeholder="快捷查询" id="param_id">
            <div class="input-group-append">
              <button class="btn btn-primary" type="button" onclick="loadDeviceList()"><i class="iconfont icon-dituyechaxun"></i></button>
            </div>
          </div>
        </div>
      </div>
      <table class="table table-striped table-bordered table-center" id="device_List">
        <thead>
        <tr>
          <th>#</th>
          <th>设备编号</th>
          <th>设备名称</th>
          <th>采集设备编号</th>
          <th>添加时间</th>
          <th>维保周期</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
       <!--   <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>
          <tr>
            <td>1</td>
            <td>SCSB001</td>
            <td>001生产设备</td>
            <td><img class="img-preview" src="../customize/images/QRcode.png" alt=""></td>
            <td>cj00998</td>
            <td>30天</td>
            <td>
              <a class="more-info" href="##" onclick="viewMore()">详情</a>
            </td>
          </tr>-->
        </tbody>
      </table>
      <div id="page" class="page_div"></div>
    </div>
  <div class="modal fade" id="viewInfoModal" data-backdrop="static" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered modal-xl">
      <div class="modal-content">
        <div class="modal-body font-p14 d-flex">
          <div class="device-img-wrapper align-items-center justify-content-center d-flex">
            <img class="img-fluid" src="../customize/images/device-img.png" alt="" id="logo-id">
          </div>
          <div class="flex-1 ml-3">
            <div class="section-title mb-3">基本信息
              <span class="title-icon"></span>
              <button type="button" class="close" data-dismiss="modal" style="margin-top: -5px;">
                <span>&times;</span>
              </button>
            </div>
            <div class="d-flex">
              <div class="flex-1">
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">设备名称</div>
                  <div class="flex-1 info-value" id="name-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">设备编号</div>
                  <div class="flex-1 info-value" id="sn-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">峰值电价</div>
                  <div class="flex-1 info-value text-peak" id="maxPrice-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">平值电价</div>
                  <div class="flex-1 info-value text-level" id="avgPrice-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">谷值电价</div>
                  <div class="flex-1 info-value text-valley" id="minPrice-id"></div>
                </div>
              </div>
              <div class="flex-1 ml-3">
                <div class="info-sec d-flex">
                  <div class="w-6 info-name">采集设备编号</div>
                  <div class="flex-1 info-value" id="ceqNumber-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-6 info-name">站号</div>
                  <div class="flex-1 info-value" id="port-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-6 info-name">维保周期</div>
                  <div class="flex-1 info-value" id="maintenanceCycle-id"></div>
                </div>
              </div>
            </div>
    
            <div class="section-title mb-3 mt-3">报警阈值设置
              <span class="title-icon"></span>
            </div>
            <div class="d-flex">
              <div class="flex-1">
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电压峰值</div>
                  <div class="flex-1 info-value text-peak" id="maxU-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电压标准值</div>
                  <div class="flex-1 info-value text-level" id="standardU-id"></div>
                </div>
              </div>
              <div class="flex-1 ml-3">
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电流峰值</div>
                  <div class="flex-1 info-value text-peak" id="maxI-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电流标准值</div>
                  <div class="flex-1 info-value text-level" id="standardI-id"></div>
                </div>
              </div>
              <div class="flex-1 ml-3">
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电量峰值</div>
                  <div class="flex-1 info-value text-peak" id="maxC-id"></div>
                </div>
                <div class="info-sec d-flex">
                  <div class="w-5 info-name">电量标准值</div>
                  <div class="flex-1 info-value text-level" id="standardC-id"></div>
                </div>
              </div>
            </div>

            <div class="section-title mb-3 mt-3">标定信息
              <span class="title-icon"></span>
            </div>
            <div class="d-flex">
              <div class="flex-1">
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">额定功率</div>
                  <div class="flex-1 info-value" id="standardPower-id"></div>
                </div>
              </div>
            </div>
            <div class="section-title mb-3 mt-3">工作功率阈值设置
              <span class="title-icon"></span>
            </div>
            <div class="d-flex">
              <div class="flex-1">
                <div class="info-sec d-flex">
                  <div class="w-4 info-name">待机功耗</div>
                  <div class="flex-1 info-value" id="qddl_id"></div>
                </div>
              </div>
<!--              <div class="flex-1 ml-3">-->
<!--                <div class="info-sec d-flex">-->
<!--                  <div class="w-4 info-name">待机电流</div>-->
<!--                  <div class="flex-1 info-value" id="djdl_id"></div>-->
<!--                </div>-->
<!--              </div>-->
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- 查看大图modal -->
  <div class="modal fade" id="viewImageModal" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered">
      <div class="modal-content text-body">
        <div class="modal-header">
          <div class="section-title mb-2">查看大图
            <span class="title-icon"></span>
          </div>
          <button type="button" class="close" data-dismiss="modal">
            <span>&times;</span>
          </button>
        </div>
        <div class="modal-body font-p14">
          <img class="img-fluid" id="img_preview_area" src="" alt="">
        </div>
      </div>
    </div>
  </div>
  <script src="../plugins/jquery-3.4.1.min.js"></script>
  <script src="../plugins/bootstrap/bootstrap.bundle.min.js"></script>
  <script src="../plugins/alert.js"></script>
  <script src="../plugins/paging.js"></script>
  <script src="../customize/js/common.js"></script>
  <script src="../customize/js/CommonUtils.js"></script>
  <script src="../customize/js/customModalV2.js"></script>
    <script src="../plugins/jquery.cookie.js"></script>
  <script src="../customize/js/prdEquManagement.js"></script>
  <script>
    $("#page").paging({
      pageNo: 1,
      totalPage: 10,
      totalSize: 30,
      callback: function (num) {
      }
    });

  </script>
</body>
</html>